import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// vant
import '../src/utils/vant'
// 引入设置 rem 基准值
import 'lib-flexible'
Vue.config.productionTip = false
Vue.filter('timers',(val)=>{
  return  new Date(val).toLocaleString()
})
// 全局路由钩子
router.beforeEach((to,from,next)=>{
  document.title=to.meta.title||'每时每刻'        //标题
  next()
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
